package com.sss.springcloud.controller;

import com.sss.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author sss
 * @date 2020-03-09 14:36
 **/
@RestController
public class MessageController {

    @Resource
    private IMessageProvider messageProvider;

    @GetMapping("/sendMessage")
    public String sendMessage(){
        String send = messageProvider.send();
        return send;
    }
}
